﻿using System.Collections;
using System.IO;
using Plugins.StateMachines;

namespace Plugins.Samples
{
    class StateMachine : IEnumerable
    {
        public StateMachine() { }

        public IEnumerator GetEnumerator()
        {
            PluginBaseState state1 = new DirectoryStateMachine.InitialState(null, new DirectoryInfo(@"C:\Users\All Users\Microsoft\RAC"));
            PluginBaseState state2 = new DirectoryStateMachine.InitialState(null, new DirectoryInfo(@"C:\Users\All Users\Microsoft\Crypto"));
            state1.Link(state2);
            return new PluginState(state1);
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return GetEnumerator();
        }
    }
}
